//
//  Fraction.h
//  OC03_属性_点语法
//
//  Created by dllo on 16/2/26.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Fraction : NSObject
//属性
@property (nonatomic, assign) NSInteger denominantor;//分母
@property (nonatomic, assign) NSInteger numetator;//分子



//方法
- (instancetype)initWithNumetator:(NSInteger)numetator denominator:(NSInteger)denominator;
+ (instancetype)fractionWithNumetator:(NSInteger)numetator denominator:(NSInteger)denominator;

// 加 减 乘 除
- (Fraction *)plusWithFraction:(Fraction *)frac;//加
- (Fraction *) minusWithFractio:(Fraction *)frac;//减
- (Fraction *)mulWithFraction:(Fraction *)frac;//乘
- (Fraction *)divWithFraction:(Fraction *)frac;//除

//比较大小

- (Fraction *)compareWithFracton:(Fraction *)frac;
//约分
- (Fraction *)yueWithFraction:(Fraction *)frac;


@end
